<template>
  <div class="header-channel">

    <div class="channel-left">
      <div style="display: flex; width: 142px; height: 72px;align-items: center;">
        <div style="margin: 0 auto;">
          <i>🐴</i><br>
          <span>动态</span>
        </div>
        <div style="margin: 0 auto;">
          <i>🦄</i><br>
          <span>动态</span>
        </div>
      </div>
    </div>


    <div class="channel-center">
      <div class="items">
        <el-popover :disabled="item % 2 !== 0 ? true : false" :placement="item <= 11 ? 'top-start' : 'bottom'"
          :show-arrow="false" :width="200" trigger="hover" v-for="item in 22" :key="item">
          <template #reference>
            <el-button>{{ item }}</el-button>
          </template>
          <div>
            <button>ok</button>
            <button>ok</button>
          </div>
        </el-popover>
      </div>
    </div>


    <div class="channel-right">
      <div class="items">
        <div v-for="item in 6" :key="item">
          <i>😱</i>
          <span>{{ item }}</span>
        </div>
      </div>
    </div>

  </div>
</template>

<script setup lang="ts">

</script>

<style lang="less" scoped>
.el-button+.el-button {
  margin-left: 0;
}

.header-channel {
  display: flex;
  height: 110px;
  align-items: center;
  justify-content: space-between;

  .items {
    height: 66px;
  }

  .channel-center {
    width: 908px;

    .items {
      padding-right: 20px;
      display: grid;
      grid-template-rows: repeat(2, 1fr);
      grid-template-columns: repeat(11, 1fr);
      gap: 8px;
    }
  }

  .channel-right {
    .items {
      display: grid;
      width: 240px;
      padding-left: 20px;
      border-left: 1px solid rgb(182, 180, 184);
      grid-template-rows: repeat(2, 1fr);
      grid-template-columns: repeat(3, 1fr);
      gap: 8px;
    }
  }
}
</style>
